<%-- 
    Document   : register
    Created on : Jul 11, 2011, 1:14:54 AM
    Author     : atefahmed
--%>

<%@page contentType="text/html" pageEncoding="MacRoman"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <body>
        <div data-role="content" >
            <div class="prepend-4 span-30">
                <form:form action="${loginUrl}" modelAttribute="registerForm" method="post" data-ajax="false">
                    <form:errors cssClass="error" />
                    <fieldset>
                        <div data-role="fieldcontain" style="width: 30%;">
                            <label for="register">Username</label><br/>
                            <input id="username" name="username" class="required" type="text" value="">
                            <br />
                            <form:input path="username" cssClass="required" readonly />
                        </div>

                        <div data-role="fieldcontain" style="width: 30%;">
                            <label for="password">Password</label>
                            <br />
                            <input id="password" name="password" class="required" type="password" value="">
                            <form:password path="password" cssClass="required" />
                        </div>

                        <div data-role="fieldcontain" style="width: 30%;">
                            <label for="confirmPassword" style="width: 40%;">Confirm Password</label>
                            <br />
                            <input id="confirmPassword" name="confirmPassword" class="required" type="password" value="">
                            <form:password path="confirmPassword" cssClass="required" />
                        </div>

                        <div data-inline="true" style="width: 15%;">
                            <input type="button" id="registerBtn" data-role="button" data-theme="b" value="Register" />
                        </div>

                    </fieldset>
                </form:form>
            </div>
        </div>
        <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script>    
        <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/GeneralAjaxService.js'></script>
        <script type='text/javascript' src='${pageContext.request.contextPath}/static/login/signup.js'></script>
    </body>
</html>
